package com.wltt.product.ahuthr.service;

import com.wltt.product.ahuthr.model.ResultData;
import com.wltt.product.ahuthr.model.po.SalaryHouseFundPO;
import com.wltt.product.ahuthr.service.base.BaseService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


/**
 * @ClassName: SalaryHouseFundService
 * @Description: 住房公积金 逻辑服务类<br/>
 * @Date: 2024-05-30 14:34:21
 * @Author yanggl
 */
public interface SalaryHouseFundService extends BaseService<SalaryHouseFundPO, Long> {

    /**
     * 导入公积金
     * @param file
     * @param belongYear
     * @param currentYear
     * @param errorContinue
     * @return
     */
    ResultData importSalaryHouseFund(MultipartFile file, Integer belongYear, Integer currentYear) throws IOException;

    /**
     * 更新公积金
     *
     * @param salaryId
     * @param salaryHouseFundPOList
     * @return
     */
    ResultData updateSalaryHouseFund(Long salaryId, List<SalaryHouseFundPO> salaryHouseFundPOList);
}